package com.woniuxy.store.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import result.Result;

import java.util.List;

@FeignClient(contextId = "foodPicClient",name = "store",path = "/store/food")
public interface FoodPicClient {
    @PostMapping({"/insertFoodPic"})
    Result insertFoodPic(@RequestParam("file") MultipartFile file);

    @DeleteMapping({"/deleteFoodPic"})
    Result deleteFoodPic(@RequestParam("foodPicId") Integer foodPicId);

    @GetMapping({"/searchFoodPic"})
    Result searchFoodPic();
}
